package com.smart.campus.school.domain.vo;

import com.smart.campus.common.annotation.Excel;
import com.smart.campus.common.core.domain.BaseEntity;
import com.smart.campus.school.domain.CourseItemConfig;
import lombok.Data;

import java.util.Date;

/**
 * 排课基础对象 sc_course_time_config
 * 
 * @author Zhihe.Li
 * @date 2020-06-14
 */
@Data
public class CourseItemConfigVo extends BaseEntity
{

    private static final long serialVersionUID = 1L;
    /** Id */
    private Long id;

    private Long mainId;


    /** 班级Id */
    @Excel(name = "班级Id")
    private Long clazzId;

    /** 班级name */
    private String className;

    /** 节次 */
    @Excel(name = "节次")
    private Integer section;

    /** 课程Id */
    @Excel(name = "课程Id")
    private Integer courseId;

    /** 星期几 */
    @Excel(name = "星期几")
    private Integer week;

    /** 单双周 */
    @Excel(name = "第几周")
    private Integer type;

    /** 教师Id */
    @Excel(name = "教师Id")
    private Long teacherId;

    /** 学校Id */
    @Excel(name = "学校Id")
    private Long schoolId;

    /** 学校Id */
    @Excel(name = "开始时间")
    private String bTime;
    /** 学校Id */
    @Excel(name = "结束时间")
    private String eTime;
    private String teacherName;
    private String courseName;

    private Date courseDay;

    private int system;

    @Override
    public CourseItemConfigVo clone()  {
        CourseItemConfigVo config = new CourseItemConfigVo();
        config.setType(this.type);
        config.setWeek(this.week);
//        config.setId(this.id);
        config.setMainId(this.mainId);
        config.setClazzId(this.clazzId);
        config.setCourseId(courseId);
        config.setTeacherId(teacherId);
        config.setSchoolId(schoolId);
        config.setSection(section);
        config.setCreateTime(this.getCreateTime());
        config.setCreateBy(getCreateBy());
        return config;
    }

    //    public CourseItemConfig clone() {
//        CourseItemConfig config = new CourseItemConfig();
//        config.setType(this.type);
//        config.setWeek(this.week);
//        config.setId(this.id);
//        config.setMainId(this.mainId);
//        config.setClazzId(this.clazzId);
//        config.setCourseId(courseId);
//        config.setTeacherId(teacherId);
//        config.setSchoolId(schoolId);
//        config.setSection(section);
//        config.setCreateTime(this.getCreateTime());
//        config.setCreateBy(getCreateBy());
//        return config;
//    }
}
